﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="ApproveStockAdjustmentVoucherList.aspx.cs" Inherits="PresentationLayer.ApproveStockAdjustmentVoucherList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="MyScripts/approveStockAdjustmentVoucher.js" defer></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <div align="center">
            <h2>Stock Adjustment Voucher List for Approval</h2>
            <br />
            <asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label>
            <br />
            <br />
            <asp:GridView ID="gvApproveList" runat="server" AutoGenerateColumns="False" CssClass="table table-hover table-striped table-bordered" Width="50%">
                <Columns>
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:CheckBox ID="cboHeaderVoucher" runat="server"></asp:CheckBox>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="cboVoucher" runat="server" class="cboItemVoucher"></asp:CheckBox>
                        </ItemTemplate>                        
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Voucher ID" Visible="False">
                        <ItemTemplate>
                            <asp:Label ID="lblVoucherId" runat="server" Text='<%# Eval("AdjVoucherId") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Voucher No.">
                        <ItemTemplate>
                            <asp:Label ID="lblVoucherNo" runat="server" Text='<%# Eval("AdjVoucherIdFormat") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Requested By">
                        <ItemTemplate>
                            <asp:Label ID="lblRequestedBy" runat="server" Text='<%# Eval("RequestedBy") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Requested Date">
                        <ItemTemplate>
                            <asp:Label ID="lblRequestedDate" runat="server" Text='<%# Eval("RequestedDate") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="View Detail">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbtnViewDetail" runat="server" OnClick="lbtnViewDetail_Click">View Detail</asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <br />
            <asp:Button ID="btnApprove" runat="server" Text="Approve" OnClick="btnApprove_Click" CssClass="btn-primary" />
            <br />
            <br />
        </div>
</asp:Content>
